<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>工作空间</title>
<jsp:include page="/WEB-INF/jsp/common/basic.jsp"></jsp:include>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/style/css/skins/_all-skins.min.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/plugin/table/bootstrap-table.css">
</head>

<body class="sidebar-mini skin-red-light"
	style="height: auto; min-height: 100%;">
	<div class="wrapper" style="height: auto; min-height: 100%;">

		<!-- 头部 -->
		<jsp:include page="/WEB-INF/jsp/common/top.jsp"></jsp:include>


		<!-- 左边 -->
		<%@ include file="/WEB-INF/jsp/common/left.jsp"%>


		<!-- 内容区域 -->
		<div class="content-wrapper" style="min-height: 1126px;">
			<!-- Content Header (Page header) -->
			<section class="content-header">
				<h1>
					帖子编辑 <small>编辑列表</small>
				</h1>
				<ol class="breadcrumb">
					<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
					<li><a href="#">Examples</a></li>
					<li class="active">Blank page</li>
				</ol>
			</section>

			<!-- Main content -->
			<section class="content">

				<div class="row">
					<!-- right column -->
					<div class="col-md-12">
						<!-- Horizontal Form -->
						<div class="box box-info">
							<!-- form start -->
							<form id="productGroup" class="form-horizontal"
								action="${pageContext.request.contextPath}/admin/topics/edit"
								method="post">

								<input id="id" name="id" type="hidden" value="${topics.id}" />
								<div class="box-body">
									
									<div class="col-md-6">
										<div class="form-group">
											<label for="num" class="col-sm-2 control-label">帖子状态</label>
											<div class="col-sm-10">
												<select class="form-control" name="status" id="status" >
												<option value="${topics.status}">${topics.status}</option>
						                         <option value="0">0</option>
						                         <option value="1">1</option>
						                        </select>
											</div>
										</div>
									</div>
									
									<div class="col-md-6">
										<div class="form-group">
											<label for="num" class="col-sm-2 control-label">精品帖子</label>
											<div class="col-sm-10">
												<select class="form-control" name="nicetopic" id="nicetopic" >
						                          <option value="${topics.nicetopic}">${topics.nicetopic}</option>
						                         <option value="0">0</option>
						                         <option value="1">1</option>
						                        </select>
											</div>
										</div>
									</div>

								</div>
								<!-- /.box-body -->
								<div class="box-footer">
									<button type="reset" class="btn btn-default btn-flat">重
										置</button>
									<button type="submit" class="btn btn-success btn-flat">更新</button>
								</div>
								<!-- /.box-footer -->
							</form>
						</div>
						<!-- /.box -->
					</div>
					<!--/.col (right) -->
				</div>


			</section>
			<!-- /.content -->
		</div>
		<!-- /.content-wrapper -->


		<!-- 底部 -->
		<jsp:include page="/WEB-INF/jsp/common/bottom.jsp"></jsp:include>

		<!-- 设置 -->
		<jsp:include page="/WEB-INF/jsp/common/setting.jsp"></jsp:include>
	</div>


	<!-- SlimScroll -->
	<script
		src="${pageContext.request.contextPath}/static/plugin/jquery-slimscroll/jquery.slimscroll.min.js"></script>
	<!-- FastClick -->
	<script
		src="${pageContext.request.contextPath}/static/plugin/fastclick/fastclick.js"></script>

	<!-- 引用表格插件 -->
	<script
		src="${pageContext.request.contextPath}/static/plugin/table/bootstrap-table.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/plugin/table/bootstrap-table-zh-CN.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/style/js/bootstrap-datetimepicker.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/style/js/bootstrap-datetimepicker.fr.js"></script>
	<script>
		$(function() {
			$('.sidebar-menu').tree();
		});
		$(".form_datetime").datetimepicker({
			format : 'yyyy-mm-dd hh:ii'
		});
	</script>
</body>

</html>
